package top.wshape1.shiziapi.uaa.domain.vo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author Wshape1
 * @version 1.0
 * @description
 * @since 2023-09-02
 */

@Data
public class PasswordVo {

    @NotBlank
    @Pattern(regexp = "^[a-zA-Z0-9]*$", message = "密码格式错误")
    @Length(max = 64)
    private String oldPassword;

    @NotBlank
    @Pattern(regexp = "^[a-zA-Z0-9]*$", message = "密码格式错误")
    @Length(max = 64)
    private String newPassword;

}
